/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: model dumper client implementation
 */
#ifndef HIAI_API_MODEL_DUMPER_H
#define HIAI_API_MODEL_DUMPER_H
#include "graph/graph.h"
#include "graph/graph_api_export.h"

namespace hiai {
class GRAPH_API_EXPORT ModelDumper {
public:
    /**
     * @brief Save graph model file
     *
     * @param [in]  irGraph  Gaph
     * @param [out] file  Save the graph model path and model name
     * The use path is legal and has write access, and the model name is reasonable without malicious characters.
     * Path + file name such as /data/local/tmp/name.om or current working directory + file name such as ./name.om
     * or just the filename without the path eg name.om
     * @return Return true or other value.
     */
    static bool SaveToFile(const ge::Graph& irGraph, const std::string& file);
};
}  // namespace hiai
#endif // HIAI_API_MODEL_DUMPER_H